package com.gree.scmservice.entity.saas.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * Created by 180686 on 2021/9/6 16:30
 */
@Data
@ApiModel(description = "saas租户密码Vo")
public class SaasTenantPasswordVo {

    /** 租户ID */
    @ApiModelProperty("租户ID")
    private String tenantId;

    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[\\s\\S]{8,16}$", message = "密码不合法")
    @ApiModelProperty("密码（暂不编码）")
    String password1;

    @NotBlank(message = "确认密码不能为空")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[\\s\\S]{8,16}$", message = "密码不合法")
    @ApiModelProperty("密码（暂不编码）")
    String password2;
}
